package com.jnshu.service.impl;

import com.jnshu.dao.StuDao;
import com.jnshu.entity.Stu;
import com.jnshu.service.StuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

@Service("stuService")
public class StuServiceImpl implements StuService {


    @Resource
    private StuDao stuDao;


    @Override
    public void add(Stu stu) {

    }

    @Override
    public void mod(Stu stu) {

    }

    @Override
    public void del(Serializable cid) {

    }

    @Override
    public Stu get(Serializable cid) {
        return null;
    }

    @Override
    public List<Stu> query() {
        List<Stu> list = stuDao.query(new Stu());
        System.out.println("数据"+list);
        return list;
    }

    @Override
    public List<Stu> query(Stu stu) {
        return null;
    }
}

